package cn.kgc.mapper;

import cn.kgc.pojo.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 陈俊良
 * @version 1.0
 * @date 2022/10/7 - 14:18
 */
@Repository
public interface EmployeeMapper {
    //查询所有
    List<Employee> findEmployeeList(@Param("currentPage") Integer currentPage,
                                    @Param("limit") Integer limit,
                                    @Param("empName") String empName);
    //添加员工
    int addEmployee(Employee employee);
    //删除员工
    int deleteEmployee(String empId);
    //修改员工信息
    int updateEmployee(Employee employee);
    //页面
    int getTotalCount(@Param("empName") String empName);
    //Echart界面查看考勤
    List<Map<String,Object>> queryForList(Integer empId);

}
